<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="../js/vue.js"></script>
  <title>Document</title>
</head>

<body>
  <div id="app"></div>
  <template id="why">
    <h2 :[name]="value">{{message}}</h2>
  </template>
  <script>
    Vue.createApp({
      template: "#why",
      data() {
        return {
          message: "",
          name: "username",
          value: "zhangqi"
        }
      },
    }).mount("#app")
  </script>
</body>

</html>